package zhaowenpu;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import zhaowenpu.bean.Students;
import zhaowenpu.dao.Userlnfo;
import zhaowenpu.dao.Userlnfolmpl;
@WebServlet("/MutilSeach")
public class MutilSeach extends HttpServlet{
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		Userlnfo ui= new Userlnfolmpl();
		String sex=req.getParameter("sex");
		String classId=req.getParameter("class");
		String address=req.getParameter("address");
		List<Students> mutild = ui.mutild(classId, sex, address);
		HttpSession session = req.getSession();
		session.setAttribute("STUDENTS", mutild);
		resp.sendRedirect("succes.jsp");
		
		
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doPost(req, resp);
	}

}
